package cn.gson.crm.model.mapper;

import cn.gson.crm.model.pojos.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeliverRecordMapper {
    //查询当前登录人所有交付记录
    public List<DeliveryRecord> selectrec(Integer pid);

    //客户
    public List<Customer> selectcustomer(Integer yg);

    //通过客户id查询交付计划
    public List<DeliveryPlan> selectdel(Integer cid);

    //多条件
    public List<DeliveryRecord> selectwhere(@Param("pid") Integer pid, @Param("where") String where);

    //时间查询
    public List<DeliveryRecord> selecttime(@Param("pid") Integer pid, @Param("statr") String statr, @Param("endtime") String endtime);

    //查询订单
    public List<DeliveryPlan> selectorder(Integer pid);

    //修改计划状态
    public void updatedel(Integer pid);

    //根据id查询订单详情
    public List<OrderDetails> selectoid(Integer oid);

    public List<DeliveryScheduleDetails> selectDe(Integer did);
    //统计回款记录
    public List<DeliveryRecord> selectdelivery();
}
